﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace VietThuongLMS.Areas.Admin.Models
{
    public enum GioiTinh { Nam,  Nữ };
    //Create
    public class HocVienModel
    {
        public AccountModel taiKhoan { get; set; }
        //[Required(ErrorMessage = "Bạn hãy chọn giới tính là Nam hoặc Nữ.")]
        //public GioiTinh? gioiTinh { get; set; }

        //[Required(AllowEmptyStrings = false, ErrorMessage = "(*) Required")]
        //public string MaHocVien { get; set; }

        //[Required(AllowEmptyStrings = false, ErrorMessage = "(*) Required")]
        //public string MaTaiKhoan { get; set; }

        //[Required(AllowEmptyStrings = false, ErrorMessage = "(*) Required")]
        //public string HoTen { get; set; }

        //[Required(AllowEmptyStrings = false, ErrorMessage = "(*) Required")]
        //public string DiaChi { get; set; }

        //[Required(AllowEmptyStrings = false, ErrorMessage = "(*) Required")]
        //public string Phone { get; set; }

        public string FullNameRelated { get; set; }
        public string Relationship { get; set; }
        public string AddressRelated { get; set; }
        public string PhoneRelated { get; set; }

        [DataType(DataType.EmailAddress)]
        [RegularExpression("^[A-Za-z0-9]+@[a-zA-Z0-9]+(\\.[a-zA-Z0-9]+)*\\.([a-zA-Z]{2,4})$", ErrorMessage = "Email address must be a valid format.")]
        public string EmailRelated { get; set; }

        public string Search { get; set; }

        
    }
}